import type { RouteRecordRaw } from 'vue-router';

// admin 布局
const Layout = () => import('@/layout/index.vue');
// 首页
const Chat = () => import('@/views/chat/index.vue');

const routes: RouteRecordRaw = {
	path: '/chat',
	name: 'chatRouter',
	component: Layout,
	meta: {
		title: 'router.chat',
		icon: 'xiaoxi',
		index: '/chat',
	},
	children: [
		{
			path: '',
			name: 'chatRouter',
			component: Chat,
			meta: {
				isHide: true,
			},
		},
	],
};

export default routes;
